package ${package.ServiceImpl};

import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import ${package.Entity?substring(0,package.Entity?last_index_of('.'))}.view.${entity}View;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * ${table.comment}
 *
 *
 * @author ${author}
 * @since ${date}
 */
@Transactional
@Service
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {
    @Autowired
    ${table.mapperName} ${table.mapperName?uncap_first};

    @Override
    public List<${entity}View> get${entity}Views(Page<${entity}View> page, ${entity}View view) {
        page.setRecords(${table.mapperName?uncap_first}.get${entity}Views(page,view));
        return page.getRecords();
    }
}
</#if>
